package vip.liux.backend.application.service.coupon;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
public class CreateCouponDto extends AbsCouponDto {

    /**
     * 领取开始时间
     */
    @NotNull
    private LocalDateTime receiveStart;

    /**
     * 领取截止时间
     */
    @NotNull
    private LocalDateTime receiveEnd;

    /**
     * 总数
     */
    @Min(value = 0)
    private Long receiveNum;

    /**
     * 每人可领取张数
     */
    @Min(value = 1)
    private Long receiveNumLimit;

}
